package com.jt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jt.pojo.Menu;
import com.jt.pojo.Role;
import com.jt.pojo.RoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    List<String> selectMenuListByRoleId(@Param("roleId") String roleId);

    List<String> AssignPermissions(List<String> roleNameList);

    List<Menu> selectAllMenuList();

    List<Role> getRoleList();

    boolean deleteRoleMenuRoleId(String roleId);

    boolean insertRoleMenuList(@Param("roleMenuList") List<RoleMenu> roleMenuList);
}
